package com.school.movie.business.web.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * (MovieVideo)表实体类
 *
 * @author makejava
 * @since 2021-01-27 20:14:27
 */
@Data
public class MovieVideo extends Model<MovieVideo> {

    @TableId
    private Long vid;

    @NotNull(message = "电影id不能为空!")
    @Min(0)
    private Integer movieid;
    //视频标题
    @NotNull(message = "视频标题不能为空!")
    private String title;
    //描述
    @NotNull(message = "电影描述不能为空!")
    private String description;

    private Date createtime;

    private String url;
    //喜欢数
    private Integer likecount;
    //发布的用户id
    private Integer uid;

    @TableField(exist = false)
    private String userName;

    private String coverImage;

    @TableField(exist = false)
    private String movieName;
}